home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / disk / cf606.zip / DOSINST.BAT < prev    next >
DOS Batch File  |  1997-08-08  |  4KB  |  141 lines

  1. echo off
  2. cls
  3. if '%1'=='' goto NeedDrive
  4.  
  5. if not exist cmfiler.com goto WrongDir
  6. if exist cmfiler.ovy goto RightDir
  7.  
  8. :NeedDrive
  9. echo You must specify the drive letter into which to install CMFiler; e.g.
  10. echo.
  11. echo DOSINST C
  12. echo.
  13. echo Do not include a colon after the drive letter. Please try again.
  14. echo.
  15. goto TheEnd
  16.  
  17. :WrongDir
  18. echo DOSINST.BAT is unable to find the CMFiler program files.
  19. echo.
  20. echo Make sure that all the files from the original CF606.ZIP, CF606.EXE
  21. echo or CMFILE.ZIP compression are in the same directory, and that that
  22. echo directory is selected as the DOS current directory before running
  23. echo DOSINST.BAT.
  24. echo.
  25. pause
  26. goto TheEnd
  27.  
  28. :RightDir
  29. echo        *****  CMFiler Ver 6.06 Installation *****
  30. echo.
  31. echo This batch file creates the directory %1:\CMFILER and copies to it
  32. echo the files in the CMFiler Ver 6.06 fileset.
  33. echo.
  34. if exist %1:\DOS\CHOICE.COM goto GetChoice
  35. pause
  36. goto InstallNow
  37.  
  38. :GetChoice
  39. %1:\DOS\CHOICE.COM Proceed with installation 
  40. if errorlevel 2 goto TheEnd
  41.  
  42. :InstallNow
  43. cls
  44. echo Installing CMFiler Ver 6.06 to %1:\CMFILER
  45. echo.
  46. echo Creating %1:\CMFILER
  47. echo.
  48. md %1:\CMFILER
  49. copy BRIEF.TXT %1:\CMFILER\BRIEF.TXT
  50. if not exist %1:\CMFILER\BRIEF.TXT goto FailDir
  51. echo Copying files. . .
  52. echo.
  53. copy *.* %1:\CMFILER
  54. echo Creating CF.BAT on %1:\
  55. echo %1:\CMFILER\CMFILER.COM >%1:\CF.BAT
  56. echo.
  57. echo File copying apparently complete. Note any error messages, then
  58. pause
  59. cls
  60. if not exist %1:\CMFILER\CMFILER.COM goto NoProgs
  61. if exist %1:\CMFILER\CMFILER.OVY goto OKProgs
  62.  
  63. :NoProgs
  64. echo Program files did not copy. Installation aborted.
  65. goto TheEnd
  66.  
  67. :OKProgs
  68. echo Program files copied successfully.
  69. echo.
  70. echo To run CMFiler at the DOS prompt, you may:
  71. echo.
  72. echo   (1) type:
  73. echo         %1:\CMFILER\CMFILER
  74. echo.
  75. echo      or;
  76. echo.
  77. echo   (2) just type:
  78. echo         %1:\CF
  79. echo.
  80. echo If you have an existing .CFG file from a previous version, just
  81. echo copy it into the %1:\CMFILER directory over any new .CFG file the
  82. echo new CMFiler may have made. Be sure the .CFG file has the same name
  83. echo (e.g., CMFILER) as the .COM file.
  84. echo.
  85. pause
  86. cls
  87. echo The files in the directory %1:\CMFILER include a CMFILER.ICO for
  88. echo files for running CMFiler under Windows 3.1 or Windows 95.
  89. echo.
  90. pause
  91. echo For Windows 3.1:
  92. echo.
  93. echo To add CMFiler to a program group, go to the Windows Program Manager, and
  94. echo double click on the desired group.  Then, in the Program Manager menu bar,
  95. echo click on File, and New...  Then click the Program Item bullet, and OK.
  96. echo.
  97. echo Fill in the data in the next menu as follows, moving the cursor from
  98. echo each line to the next using your mouse and clicking:
  99. echo.
  100. echo Description:  CMFiler
  101. echo Command Line: %1:\CMFILER\CMFILER.COM
  102. echo Working Directory: %1:\  [or whatever you would like CMFiler to start in]
  103. echo Shortcut Key: [Optional. I use Ctrl+Alt+C]
  104. echo Also decide if you want CMFiler to start minimized. I leave this off.
  105. echo.
  106. echo Then click on the Change Icon... button.  Windows will tell you there are
  107. echo no available icons for this file.  Click OK, then, on the File Name line
  108. echo in the next menu, type %1:\CMFILER\CMFILER.ICO and click on OK twice.
  109. echo The CMFiler icon should appear in the CMFiler Properties box.
  110. echo Click OK on the Program Item Properties menu, and the CMFiler icon should
  111. echo appear in the program group. Just double click on it to run.
  112. echo.
  113. pause
  114. cls
  115. echo For Windows 95:
  116. echo.
  117. echo To add CMFiler to a program folder as a shortcut, click on Start,
  118. echo go to Settings and click on Taskbar...  Click on the
  119. echo Start Menu Programs tab, click on Add, type in %1:\CMFILER\CMFILER.COM
  120. echo and click on Next.
  121. echo.
  122. echo Select a folder to put the CMFiler shortcut into and click on Next.
  123. echo If you want CMFiler on your desktop when Windows 95 starts up, click on
  124. echo the folder Desktop.  If you want Windows 95 to start up with
  125. echo CMFiler already running, click on the Startup folder.  Otherwise,
  126. echo pick an appropriate folder in Programs to put it in.
  127. echo.
  128. echo Select a name for the shortcut (CMFiler will probably be the default),
  129. echo and click OK.
  130. echo.
  131. pause
  132. goto TheEnd
  133.  
  134. :FailDir
  135. echo.
  136. echo Unable to create %1:\CMFILER. Please specify another drive.
  137.  
  138. :TheEnd
  139. echo.
  140. echo on
  141.